<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../vue.js"></script>
    <script src="../vue-min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>zhansan : {{name}}</p>
        <!-- v-model:数据双向绑定，双方数值发生变化，能够同时进行数据渲染，及时跟新 -->
        <input type="text" v-model="name">
        <select v-model="city" @click="citys">
           <option value="" >qingxuanze</option>
           <option value="1" >北京1</option>
           <option value="2">北京2</option>
           <option value="3">北京3</option>

           

        </select>
    </div>
    <script>
        const vr = new Vue({
            el: "#app", //表示当前的vr属性要控制的类名
            data: {
                name:'zhangsan',
                city:''
            },
            methods:{
                citys(e){
                    console.log("dianjile");
                }
            }

        })
    </script>
</body>

</html>